home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Interactive Media Design Review 1999
/
Interactive Media Design Review 1999.iso
/
pc
/
Demos
/
Bombardier_PC
/
BSCRIPTS.CST
/
00106_Script_slideTourButton
< prev
next >
Wrap
Text File
|
1999-04-25
|
3KB
|
141 lines
-- ⌐ 1998 @radical.media, inc. & Concurrent New Media Group, L.L.C.
-- Developed for Bombardier, Inc.
--
-- All programming developed by:
-- Robert Fabricant, Valerie Valoueva, Ossi Shaked,
-- Henry Sauvageot, Chris Howell & Chris Girand
--
-- Use of this code by parties other than @radical.media, inc. or their
--agents
-- without the express written consent of @radical.media, inc. AND Concurrent
-- New Media Group, L.L.C. is strictly prohibited.
------------------------------------------------------
property mySprite, NeutralName, RolloverName, startAnimation,¼
AnimationIsOver,planeName,memberCount
on new me
set startAnimation = FALSE
set AnimationIsOver = FALSE
set mySprite = the spriteNum of me
set NeutralName = getNeutralName(me, mySprite)
set RolloverName = NeutralName&"-rol"
set planeName = getPlaneName (me)
end
on getPlaneName me
set Name = NeutralName
repeat with i = the Number of Chars in Name down to 1
if char i of Name <> "_" then
delete char i of Name
else
delete char i of Name
exit repeat
end if
end repeat
return Name
end
on mouseEnter me
if not AnimationIsOver then
set the member of sprite mySprite = member RolloverName
if startAnimation = FALSE then puppetsound 3, "mouse2a"
end if
end
on mouseLeave me
if not AnimationIsOver then
set the member of sprite mySprite = member NeutralName
end if
end
on mouseUp me
sound stop 1
sound stop 2
clearpups
set startAnimation = TRUE
puppetsound 3,"hydmach"
end
on getNeutralName me,SpriteNum
set aMember = the member of sprite spriteNum
set Name = the name of member aMember
if Name contains "-" then
repeat with i = the Number of Chars of Name down to 1
if char i of Name <> "-" then
delete char i of Name
else
delete char i of Name
exit repeat
end if
end repeat
end if
return Name
end
on exitFrame me
if startAnimation then
slideButton me
end if
if AnimationIsOver then
oldScript me
oldMouseUp me
end if
end
on slideButton me
repeat with memberCount = 0 to 14
set the member of sprite mySprite = memberCount&"-"&planeName
updatestage
end repeat
set startAnimation = FALSE
set AnimationIsOver = TRUE
end
on oldScript me
global gFrame, menuController
set gFrame=the frame
sound stop(1)
sound stop(2)
if IsQTVRMovie(gQTVRObj) then
getview
closemovie
end if
deselect menuController
end
on oldMouseUp me
global Fqtvr
resetInfo
if Fqtvr = "" then
set Fqtvr="no"
end if
go to "flash"
end
on enterFrame me
--Hide this button in cabin details section, if we got there from QTVR interior
global comefromQTVR
if comefromQTVR then
if the frameLabel contains "detail" then
set the loc of sprite mySprite = point(-1000,-1000)
end if
end if
end